2006-08-29 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c
(gtk_recent_chooser_menu_set_current_item): Break when an item
is found and activated. (#353449, based on a patch by Jan Arne
Petersen)
+2006-08-29 Emmanuele Bassi <ebassi@gnome.org>
+
+ * gtk/gtkrecentchoosermenu.c
+ (gtk_recent_chooser_menu_set_current_item): Break when an item
+ is found and activated. (#353449, based on a patch by Jan Arne
+ Petersen)
+
Fri Jul 14 16:13:37 2006 Tim Janik <timj@gtk.org>
* gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style
if (!info)
continue;
- if (0 == strcmp (uri, gtk_recent_info_get_uri (info)))
- found = TRUE;
+ if (strcmp (uri, gtk_recent_info_get_uri (info)) == 0)
+ {
+ gtk_menu_shell_activate_item (GTK_MENU_SHELL (menu),
+ menu_item,
+ TRUE);
+ found = TRUE;
+
+ break;
+ }
}
g_list_free (children);
GTK_RECENT_CHOOSER_ERROR_NOT_FOUND,
_("No recently used resource found with URI `%s'"),
uri);
- return FALSE;
- }
- else
- {
- gtk_menu_shell_activate_item (GTK_MENU_SHELL (menu), menu_item, TRUE);
-
- return TRUE;
}
+
+ return found;
}
static gchar *